x86/vmx: improvements to vmentry failure handling
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 3 Nov 2015 17:14:02 +0000 (18:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Nov 2015 17:14:02 +0000 (18:14 +0100)
commitbbcf0b218f64b1e3e2b66b0fbb623f51d9014e81
tree48e3b86c433af6b517c805aa0f7c1f7a9464392b
parent0900d8b09f3f34cee07101f9cad53dd694080105
x86/vmx: improvements to vmentry failure handling

Combine the almost identical vm_launch_fail() and vm_resume_fail() into a
single vmx_vmentry_failure().

Re-save all GPRs so that domain_crash() prints the real register values,
rather than the stack frame of the vmx_vmentry_failure() call.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/entry.S
xen/arch/x86/hvm/vmx/vmcs.c